package com.wecheir.dao;

import com.wecheir.entity.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface MessageDao extends BaseDao<Message>{

   /* User selectUserByUser(User user);

    User selectUserByMap(Map<String, Object> map);

    void saveUserRoles(@Param("userId") String id, @Param("roleIds") Set<Role> roles);

    void dropUserRolesByUserId(@Param("userId") String id);*/

     List<Message> selectMessageList(@Param("toUser")String toUser,@Param("start") Integer start,@Param("limit") Integer limit);

    int selectMessageListCount(String toUser);

    Message selectMessageById(@Param("id") String id);

    void saveMessageByUpdatePro(@Param("message")Message message,@Param("uuid")String uuid);
}